package com.web.java0324mybatis.entity;

import java.util.List;

/**
 * @author
 * @Description
 * @Date 2025/3/24 15:34
 */
public class StudentClass {
    private int id;
    private String className;
    private int classNum;
    private List<Student> students;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public int getClassNum() {
        return classNum;
    }

    public void setClassNum(int classNum) {
        this.classNum = classNum;
    }

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    @Override
    public String toString() {
        return "StudentClass{" +
                "id=" + id +
                ", className='" + className + '\'' +
                ", classNum=" + classNum +
                ", students=" + students +
                '}';
    }
}
